package chixing.day09.homework.work2;

import chixing.day09.homework.work1.HelloA;
import chixing.day09.homework.work1.HelloB;

public class ChildClass {
    public static void main(String[] args) {
        HelloA a = new HelloB();
        HelloB b = new HelloB();
        System.out.println("Result=" + a.func1(100, 50));//B重写了fun()方法
        System.out.println("Result=" + b.func1(100, 50));

    }
}
